package sparrowGui.skin
{
	import flash.display.Sprite;
	import flash.text.TextField;

	public class TreeChildItemSkin extends TreeItemSkin
	{
		public function TreeChildItemSkin()
		{
			super();
		}
		
		override protected function init():void
		{
			super.init();
			var txt:TextField = (selectState.getChildAt(0) as TextField);
			txt.background = true;
			txt.backgroundColor = 0x316AC5;
			txt.textColor = 0xFFFFFF;
		}
		
		override protected function drawShap(sp:Sprite, txy:int, r:int=6, borderColor:int=0x666666, bgColor:int=0xCCCCCC):void
		{
			sp.graphics.beginFill(bgColor);
			sp.graphics.drawRect((txy),(txy+r-2),r*2,4);
			sp.graphics.endFill();
		}
	}
}